package com.liuxinlong.modules.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.Api;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 固资花费实体
 * 
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023-12-07
 *
 */
@Api("固资花费实体对象")
@Data
@TableName("pmip_assets_cost")
public class AssetsCost implements Cloneable {
	/**
	 * id
	 */
	private String id;

	/**
	 * 固资id
	 */
	private String assetsId;

	/**
	 * 来源类型 1.订单 2.新增花费
	 */
	private int sourceType;

	/**
	 * 来源id
	 */
	private String sourceId;

	/**
	 * 花费名目
	 */
	private String costName;

	/**
	 * 资产类型
	 */
	private int assetsType;

	/**
	 * 预计花费
	 */
	private BigDecimal planAmount;

	/**
	 * 预计入库时间
	 */
	private String planStorageDate;

	/**
	 * 状态 1：生效 2：失效
	 */
	private int status;

	/**
	 * 锁定id
	 */
	private String lockId;

	/**
	 * 创建人员
	 */
	private String createUser;

	/**
	 * 创建时间
	 */
	private String createTime;

	/**
	 * 修改人员
	 */
	private String updateUser;

	/**
	 * 修改时间
	 */
	private String updateTime;

	@Override
	public AssetsCost clone() {
		try {
			AssetsCost clone = (AssetsCost) super.clone();
			// TODO: copy mutable state here, so the clone can't change the internals of the original
			return clone;
		} catch (CloneNotSupportedException e) {
			throw new AssertionError();
		}
	}
}
